<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>消息发布 政策公告</title>
<link href="${rc.contextPath}/common/css/common/common.css"rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${rc.contextPath}/common/js/thickbox/jquery.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/config.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/thickbox/thickbox.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/notice.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/main.js"></script>
<script language="javascript" type="text/javascript" src="${rc.contextPath}/common/js/calendar/WdatePicker.js"></script>

</head>
<body>
<input type="hidden" id="rootPath" value="${rc.contextPath}"/>
<!-- 遮罩 -->
<div id="bg" class="bg" style="display:none;"></div>
<div class="main">
  <!--可拖动 上部分-->
  <div class="position">
    <div class="p_left">当前位置：消息发布 &lt; 政策公告 &lt;</div>
    <div class="p_right">
      <dl><dt>姓名：</dt><dd>${currentUser.ename}</dd></dl>
      <dl><dt>登录时间：</dt><dd><span id="nowDate"></span></dd></dl>
    </div>
  </div>
  <div class="topBox">
    <div class="mesCheck">
      <div class="title1"><strong>政策公告 </strong></div>
      <div class="box2C">
        <div class="tableForm">
        	<form action="${rc.contextPath}/notice/searchPolicy/1" method="post">
	          <table border="0" align="center" cellpadding="0" cellspacing="0" class="tab1">
	            <tr>
	              <th width="100">公告标题：</th>
	              <td width="300"><input type="text" class="input" name="msgTitle" id="dname" maxlength="50" value="$!msgTerm.msgTitle"/></td>
	            </tr>  
	            <tr>
	              <th width="100">
	              	发布时间： </th>
	              <td width="300">
	              	<input type="text" id="timeUp" style="height:19px" size="10" name="timeUp" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" value="$!msgTerm.timeUp"/> 
	              	<img onclick="WdatePicker({el:'timeUp'})" src="${rc.contextPath}/common/js/calendar/skin/datePicker.gif" width="16" height="22"/>
	              	至 
	              	<input type="text" id="timeDown" style="height:19px" size="10" name="timeDown" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" value="$!msgTerm.timeDown"/>
	              	<img onclick="WdatePicker({el:'timeDown'})" src="${rc.contextPath}/common/js/calendar/skin/datePicker.gif" width="16" height="22"/>
	              </td>
	            </tr>
	            <tr>
	              <td colspan="4" >
	                <div class="btn_all">
	                  <div class="btnOper2 btn_inline"><a href="#" onclick="javascript:document.forms[0].submit()" class="btn2"><span>查询</span></a>&nbsp;&nbsp;&nbsp;</div>
	                  <div class="btnOper2 btn_inline"><a href="#" onclick="clearSearchText()" class="btn2"><span>清空</span></a>&nbsp;&nbsp;&nbsp;</div>
	                </div>             
	              </td>
	            </tr>            
	          </table>
        	</form>
        </div>
        <div  class="overflow" style="overflow-x:auto ; width:100%;">
        <table class="tab2">
          <tr>
            <th>消息标题</th>
            <th>发布时间</th>
            <th>附件下载</th>
            <th>操作</th>
          </tr>
          #foreach($policy in $policyList)
	          <tr>
	            <td>
	            	<a href="#" onclick="controllerPolicy('$policy.id',true)">$policy.msgTitle</a>
	            	<input type="hidden" name="idHidden" id="idHidden" value="$msg.id"/>
	            </td>
	            <td>$policy.pubTime</td>
	            <td>
	            	#if($policy.filePath=="$policy.filePath")<a onclick="downloadURLByParam('$policy.filePath')" href="javascript:void(0);">点击下载</a>#end
	            	#if($policy.filePath!="$policy.filePath")无附件#end
	            </td>
	            <td>
	            	<a href="#" onclick="controllerPolicy('$policy.id',true)">修改</a>
	            	<a href="#" onclick="controllerPolicy('$policy.id',false)">删除</a>
	            </td>
	          </tr>
          #end
        </table>
       </div>
		<div class="btnOper2 btn_inline"><a href="#" onclick="showAddMsgDiv()" class="btn2"><span>发布</span></a>&nbsp;&nbsp;&nbsp;</div>
        <!-- #BeginLibraryItem "/Library/page.lbi" -->
        #set($endPage=$pageView.startPage + $pageView.pageSize)
        #set($pageNow=$pageView.pageNow + 1)
        #set($pageBack=$pageView.pageNow - 1)
        <input type="hidden" value="${pageView.pageCount}" id="pageCount"/>
        <div class="page clearfix">
          <ul class="le">
            <li>每页显示<span>$!{pageView.pageSize}</span>条</li>
            <li>共<span>$!{pageView.pageCount}</span>页</li>
            <li>当前第<span>$!{pageView.pageNow}</span>页</li>
          </ul>
          <ul class="ri">
            <li><a href="javascript:;policyPageController('jump')" class="go" id="pageCount">&nbsp;</a></li>
            <li>到
              <input type="text" class="input" size="4" id="pageJump"/>
              页</li>
            <li><a href="javascript:;policyPageController('${pageView.pageCount}')" class="btn">[末页]</a></li>
            <li><a href="javascript:;policyPageController('${pageNow}')" class="btn">[下页]</a></li>
            <li><a href="javascript:;policyPageController('${pageBack}')" class="btn">[前页]</a></li>
            <li><a href="${rc.contextPath}/notice/policy/1" class="btn">[首页]</a></li>
          </ul>
        </div>
        <!-- #EndLibraryItem -->
      </div>
    </div>
  </div>
  <!-- 消息详情弹窗 -->
  <div id="configInfo" class="div3">
	  <form action="${rc.contextPath}/notice/updatePolicy" method="post" enctype="multipart/form-data">
	  	<table class="tab3" id="configInfoTb">
	  		<tr bgcolor="#CECECE">
	  			<td>消息标题：</td>
	  			<td>
	  				<input type="text" size="20" class="middleInput" name="msgTitle" id="msgTitle" value=":)努力加载数据 请稍等..."/>
	  				<input type="hidden" id="titleHidden" name="titleHidden"/>
	  			</td>
	  		</tr>
	  		<tr>
	  			<td>消息内容：</td>
	  			<td><textarea cols="30" rows="20" class="largeInput" name="msgContent" id="msgContent">:)"努力加载数据 请稍等...</textarea></td>
	  		</tr>
	  		<tr>
		    	<td width="100">附件：</td>
		    	<td width="300"><input type="file" class="input" name="picx" id="picx"/></td>
		    </tr>  
	  	</table>
	  </form>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="javascript:document.forms[1].submit()" class="btn2"><span>确定</span></a>&nbsp;&nbsp;&nbsp;</div>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="closeConfigDiv()" class="btn2"><span>取消</span></a>&nbsp;&nbsp;&nbsp;</div>
  </div>
  <!-- 消息添加弹窗 -->
  <div id="configAdd" class="div3">
	  <form action="${rc.contextPath}/notice/newPolicy" method="post" enctype="multipart/form-data">
	  	<table class="tab3">
	  		<tr bgcolor="#CECECE">
	  			<td>公告标题：</td>
	  			<td><input type="text" size="20" class="middleInput" name="msgTitleAdd" id="msgTitleAdd"/></td>
	  		</tr>
	  		<tr>
	  			<td>内容：</td>
	  			<td><textarea cols="30" rows="20" class="largeInput" name="msgContentAdd" id="msgContentAdd"></textarea></td>
	  		</tr>
	  		<tr>
		    	<td width="100">附件：</td>
		    	<td width="300"><input type="file" class="input" name="pic" id="pic"/></td>
		    </tr> 
	  	</table>
	  	</form>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="javascript:document.forms[2].submit()" class="btn2"><span>确定</span></a>&nbsp;&nbsp;&nbsp;</div>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="closeConfigAddDiv()" class="btn2"><span>取消</span></a>&nbsp;&nbsp;&nbsp;</div>
  </div>
  <!-- 提示等待div -->
  <center><div class="div6" id="waitDiv">加载中...</div></center>
  <center><div class="div8" id="checkDiv"></div></center>
</div>
<!--可拖动 上部分end-->
<!--可拖动 下部分-->

<!--可拖动 下部分end-->
</div>
</body>
</html>
